package com.project.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

@TableName("t_reply")
public class ReplyBean {
    @TableId(value = "pk_replyId", type = IdType.AUTO)
    private Integer id;
    @TableField("r_title")
    private String title;
    @TableField("r_content")
    private String content;
    @TableField(exist = false)
    private ThemeBean theme;
    @TableField("fk_themeId")
    private Integer themeId;
    @TableField(exist = false)
    private UserBean user;
    @TableField("fk_userId")
    private Integer userId;

    public ReplyBean() {
    }

    public ReplyBean(String title, String content, Integer themeId, Integer userId) {
        this.title = title;
        this.content = content;
        this.themeId = themeId;
        this.userId = userId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public ThemeBean getTheme() {
        return theme;
    }

    public void setTheme(ThemeBean theme) {
        this.theme = theme;
    }

    public Integer getThemeId() {
        return themeId;
    }

    public void setThemeId(Integer themeId) {
        this.themeId = themeId;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "ReplyBean{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", theme=" + theme +
                ", themeId=" + themeId +
                ", user=" + user +
                ", userId=" + userId +
                '}' + "\n";
    }
}
